package br.com.iqt;

import br.com.iqt.zql.ZFromItem;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Vector;

/**
 *
 * @author Arlino
 */
public interface DriverStatistics {
    
    public boolean haveIndex(Vector tables, String column) throws SQLException;
    public boolean isPrimaryKey(Vector tables, String column) throws SQLException;
    public ZFromItem getTableWithPrimaryKey(Vector tables, String column) throws SQLException;
    public boolean isForingkeyFromTable1InTabel2(ZFromItem table, String column, Vector from) throws SQLException;
    public ZFromItem getTableWithForingkeyFromTable1InTabel2(ZFromItem table, String column, Vector from) throws SQLException;
    public ArrayList getExecutionPlan(String sql) throws SQLException;
    public String getRealRuntime(String sql) throws SQLException;
    
}
